﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using VMC.Domain.Model.Common;

namespace VMC.Domain.Model.DataStructure
{
    public class AddEditComplexDataType : BaseModel
    {

        [Required(ErrorMessage = "{0} is required.")]
        [Display(Name = "Make it public?")]
        public bool IsPublic{ get; set; }

        [Required(ErrorMessage = "{0} is required.")]
        [Display(Name = "Name")]
        [StringLength(50, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 3)]
        public string Name { get; set; }

        [Display(Name = "Auto generate variable name?")]
        public bool AutoGenerateVaribleName { get; set; }

        [Required(ErrorMessage = "{0} is required.")]
        [Display(Name = "Variable Name")]
        [StringLength(75, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 3)]
        public string VariableName { get; set; }

        [Display(Name = "Description")]
        [StringLength(255, ErrorMessage = "The {0} is limited to characters.")]
        public string Description { get; set; }

        [Display(Name = "Comment")]
        [StringLength(50, ErrorMessage = "The {0} is limited to characters.")]
        public string Comment { get; set; }
    }
}
